package com.special.threademo.jvm.gc;

import org.apache.poi.ss.formula.ptg.FuncPtg;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/26  14:47
 *
 */
public class GcAlgrothmDemo {
    public static void main(String[] args) {
        int size = 1024 * 1024;
        byte[] bytes1 = new byte[2 * size];
        byte[] bytes2 = new byte[2 * size];
        byte[] bytes3 = new byte[2 * size];
        byte[] bytes4 = new byte[2 * size];
        for (byte b:bytes1){
            // 原生类型默认值为0，否则就是null
            System.out.println(b);
        }
    }
}
